<?php
class SiteController extends Controller
{
	public function init()
	{
		parent::init();
	}
	
	public function actionIndex()
	{
		$arrDeals = Posts::getInstance()->getList(array(
			'taxonomy_id' => 2,
			'post_status' => 1,	
			'page' => 1,
			'limit' => 5,
		));
		$this->render('index', array('arrDeals'=>$arrDeals));
	}

	public function actionError()
	{
		$this->render('error');
	}
	
	public function actionPage()
	{
		$this->render('page');
	}
}